package com.yunc.modules.sys.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunc.common.aspect.DataScope;
import com.yunc.modules.sys.entity.SysNotice;
import com.yunc.modules.sys.mapper.SysNoticeMapper;
import com.yunc.modules.sys.service.ISysNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 通知公告
 *
 * @author congcong tao
 * @create 2018/12/16 6:30 PM
 */
@Service("sysNoticeService")
public class SysNoticeServiceImpl extends ServiceImpl<SysNoticeMapper,SysNotice> implements ISysNoticeService {

    @Autowired
    private SysNoticeMapper sysNoticeMapper;

    @Override
    @DataScope(tableAlias = "u")
    public List<SysNotice> pageInfo(Page<SysNotice> page, SysNotice sysNotice) {
        return sysNoticeMapper.pageInfo(page, sysNotice);
    }
}
